import {API_CONFIG} from "../config/index.js"
import request from '../api/index.js'

export const login =(username,password) => {
    /*
        {
            username:username,
            password:password
        }
        ==>{username,password}
    */ 
    return request(API_CONFIG.loginApi,{username,password},"post","2000")
}

export const logout =() => {
    return request(API_CONFIG.logoutApi,{},"get","2000")
}